<?php

namespace MLM\Model\Member;

class Account extends \MLM\Model\Generic\Object\Mapper {
    //put your code here
    protected $_storage;
    public function __construct(\MLM\Model\Member\Account\Storage $storage) {
        $this->_storage = $storage;
        
        parent::__construct(
                array(), 
                array(
                    'account_id'        => 'id',
                    'account_num'       => 'accNum',
                    'account_name'      => 'accName',
                    'member_id'         => 'memberId',
                    'account_status'    => 'status',
                    'bank_id'           => 'bankId',
                    'bank_acc_no'       => 'rek',
                    'bank_acc_name'     => 'rekName',
                    'bank_city_name'    => 'bankCity',
                    'amount'            => 'amount',
                    'amount_1'          => 'amount1',
                    'amount_2'          => 'amount2',
                    'amount_3'          => 'amount3',
                    'amount_4'          => 'amount4'
                    
                )
        );
    }
    
    public function save(){
        return $this->_storage->save($this);
    }


    
    
}
